package entity;

import java.io.Serializable;
import javax.persistence.Entity;



@Entity(name="ImageElement")

public class ImageElementEntity extends UnstructuredContentElementEntity implements Serializable 
{
    private String imageLink;
    
    
    
    public ImageElementEntity()
    {
        super();
    }
    
    
    
    public ImageElementEntity(Integer displayOrder, String name, String imageLink)
    {
        super(displayOrder, name);
        this.imageLink = imageLink;
    }
    
    

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (getId() != null ? getId().hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ImageElementEntity)) {
            return false;
        }
        ImageElementEntity other = (ImageElementEntity) object;
        if ((this.getId() == null && other.getId() != null) || (this.getId() != null && !this.getId().equals(other.getId()))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entity.ImageElement[ id=" + getId() + " ]";
    }

    public String getImageLink() {
        return imageLink;
    }

    public void setImageLink(String imageLink) {
        this.imageLink = imageLink;
    }    
}
